Test: Error of the median filter with different wave number, with higher sample rate (2015.10.14. DW)


In [1]:
import numpy as np
import matplotlib.pyplot as plt
import sys
#Add a new path with needed .py files
sys.path.insert(0, 'C:\Users\Dominik\Documents\GitRep\kt-2015-DSPHandsOn\MedianFilter\Python') 

import functions
import gitInformation

In [3]:
gitInformation.printInformation()


Information about this notebook
============================================================
Date: 2015-10-20
Python Version: 2.7.10 |Anaconda 2.3.0 (64-bit)| (default, May 28 2015, 16:44:52) [MSC v.1500 64 bit (AMD64)]
Git directory: C:\Users\Dominik\Documents\GitRep\kt-2015-DSPHandsOn\.git
Current git SHA: 71f330430a442c1e95e72860450bb6ccbad481d9
Current remote: origin
Current branch: master

In [2]:
% matplotlib inline

Testing with more samples ( now 1024, before 128)

Plots


In [5]:
fig = plt.figure()
for i in range (0, 40):
    functions.ErrorPlotWave1024(i, 128)


With more samples the error rate at wave number 16 and 32 is no longer lower then expected.


In [8]:
fig = plt.figure(1, figsize=(15, 3))
functions.medianSinPlot1024(15, 128)
plt.title('Wave number 15')
fig = plt.figure(2, figsize=(15, 3)) 
functions.medianSinPlot1024(16, 128)
plt.title('Wave number 16')
fig = plt.figure(3, figsize=(15, 3)) 
functions.medianSinPlot1024(17, 128)
plt.title('Wave number 17')


Out[8]:
<matplotlib.text.Text at 0xae75630>

In [8]:
fig = plt.figure(1, figsize=(15, 3))
functions.medianSinPlot1024(31, 128)
plt.title('Wave number 31')
fig = plt.figure(2, figsize=(15, 3)) 
functions.medianSinPlot1024(32, 128)
plt.title('Wave number 32')
fig = plt.figure(3, figsize=(15, 3)) 
functions.medianSinPlot1024(33, 128)
plt.title('Wave number 33')


Out[8]:
<matplotlib.text.Text at 0xbb99400>